﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="GuiTinNhan.ascx.vb" Inherits="FrontEnd_Control_Users_GuiTinNhan" %>
<%@ Register Assembly="ValidationTextBox" Namespace="ValidationTextBox.CustomControls"
    TagPrefix="cc1" %>

<script type="text/javascript">
    $(function () {
      //  $("#<%=txtTieude.ClientID() %>").focus();
        

                $(".form_login input").keypress(function (e) {
                    if (e.keyCode == 13) {
                        $("#<%=btnSend.ClientID()%>").click();
                        return false;
                    }
                });

    });
            function init() {
             Alertbox('Cập nhật dữ liệu thành công.');
            self.parent.tb_remove();
            parent.location.reload(true);
         
    }
</script>
<Style type="text/css" >
  .TitlePopup
    {
        font: bold 11px Arial, Tahoma, Verdana, Helvetica, sans-serif;
        color: #066bb9;
        text-transform: uppercase;
        text-align: left;
    }
</Style>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div style="clear:both"/>
<div class="box_loginpopup" style="height:350px" >
    <!-- pages -->
    <div class="box_logincontent">
        <div class="form_login">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="40%" class="text_form_login" valign="middle" align="right">
                      
                    </td>
                    <td width="60%" align="left" valign="middle" class="title_login">
                        GỬI TIN NHẮN CHO NGƯỜI BÁN
                    </td>
                </tr>
                <tr>
                    <td class="text_form_login" valign="middle" align="right">
                        Tiêu đề:
                    </td>
                    <td valign="middle" align="left" style="padding-left:10px" class="text_form_login_2">
                    
                        <cc1:ValidationTextBox ID="txtTieude" Width="300px" DataType="required" MaxLength="100" AssociatedLableText="tiêu đề(không qua 100 ký tự)" runat="server" CssClass='TextBox'></cc1:ValidationTextBox>
                    </td>
                </tr>
                <tr>
                    <td class="text_form_login" valign="top" align="right">
                        Nội dung:
                    </td>
                    <td valign="middle" style="padding-left:10px" align="left" class="text_form_login_2">
                      
                        <cc1:ValidationTextBox ID="txtNoidung"  DataType="required" AssociatedLableText="nội dung(không quá 200 ký tự)" runat="server" CssClass="TextBox" MaxLength="200" 
                            TextMode="MultiLine" Height="150px" Width="300px" ></cc1:ValidationTextBox>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td class="text_form_login_2">
                        <asp:Button ID="btnSend" CausesValidation="true" OnClientClick="return validateFormInputs();" CssClass="btn_login" runat="server" Text="Gửi tin nhắn" />
                      
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td class="text_note_login">
                    
                    </td>
                </tr>
            </table>
            <div style="height: 10px" class="clear_both">
            </div>
        </div>
    </div>
    <!-- end pages -->
    <asp:HiddenField ID="hidRaoVatId" Value="0" runat="server" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
    

